<template>
  <div>
    <breadcrumb></breadcrumb>
    <el-container>
      <el-aside width="250px">
        <el-menu :default-active="'/account/api/insertDriver'" class="menuVertical" @open="handleOpen" @close="handleClose" @select="selectMenu">
          <div v-for="menuItem in menuArr" :key="menuItem.menuItemName">
            <el-submenu index="1">
              <template slot="title">
                <div class="NavItem">
                  <img class="iconNav" src="@/assets/img/wenjiejia.png" alt="">
                  <div class="titleNav">{{ menuItem.menuItemName }}</div>
                </div>
              </template>
              <div v-for="subMenuItem in menuItem.subItem" :key="subMenuItem.address">
                <el-menu-item :index="subMenuItem.address">
                  <div class="titleItem">
                    <div class="requesType GET" v-if="subMenuItem.requestType == 'GET'">GET</div>
                    <div class="requesType POST" v-else-if="subMenuItem.requestType == 'POST'">POST</div>
                    <div class="requesType PUT" v-else-if="subMenuItem.requestType == 'PUT'">PUT</div>
                    <div class="requesType DEL" v-else-if="subMenuItem.requestType == 'DEL'">DEL</div>
                    <div class="requestName">{{ subMenuItem.requestName }}</div>
                  </div>
                </el-menu-item>
              </div>

            </el-submenu>
          </div>

        </el-menu>
      </el-aside>
      <el-main>
        <div class="mainBox">
          <div v-for="(item, index) in dataArr" :key="index">
            <div class="main" v-if="selectedItem == item.address">
              <div>
                <div class="mainTitle" @click="showMainItem(1)">
                  <div class="iconfont icon-xiajiantou" :class="{ 'active': !show1 }"></div>
                  <div class="TitleText">
                    接口说明
                  </div>
                </div>
                <div class="descriptionsBox" v-show="show1">
                  <el-descriptions border :size="'small'">
                    <el-descriptions-item label="接口名称">{{ item.RequsetName }}</el-descriptions-item>
                    <el-descriptions-item label="调用地址">{{ item.address }}</el-descriptions-item>
                    <el-descriptions-item label="请求方式">{{ item.requestType }}</el-descriptions-item>
                    <el-descriptions-item label="Content-Type">{{ item.contentType }}</el-descriptions-item>
                    <el-descriptions-item label="接口文档地址">{{ item.apiPost || '无' }}</el-descriptions-item>

                  </el-descriptions>
                </div>

              </div>
              <div>
                <div class="mainTitle" @click="showMainItem(2)">
                  <div class="iconfont icon-xiajiantou" :class="{ 'active': !show2 }"></div>
                  <div class="TitleText">
                    请求参数(Header)
                  </div>
                </div>
                <div class="list" v-show="show2">
                  <el-table :data="item.header" style="width: 100%" ref="table">
                    <el-table-column align="center" prop="parameter" label="参数"></el-table-column>
                    <el-table-column align="center" prop="argument" label="参数值"></el-table-column>
                    <el-table-column align="center" prop="required" label="是否必填">
                      <template slot-scope="scope">
                        <div>{{ scope.row.required ? '是' : '否' }}</div>
                      </template>
                    </el-table-column>
                    <el-table-column align="center" prop="type" label="参数类型"></el-table-column>
                    <el-table-column align="center" prop="describe" label="描述说明"></el-table-column>
                  </el-table>
                </div>
              </div>
              <div>
                <div class="mainTitle" @click="showMainItem(3)">
                  <div class="iconfont icon-xiajiantou" :class="{ 'active': !show3 }"></div>
                  <div class="TitleText">
                    {{ item.requestType == 'GET' ? '请求参数(Query)' : '请求参数(Body)' }}
                  </div>
                </div>
                <div class="list" v-show="show3">
                  <el-table row-key="parameter" :data="item.params" style="width: 100%" ref="table">
                    <el-table-column align="center" prop="parameter" label="参数"></el-table-column>
                    <el-table-column align="center" prop="argument" label="参数值"></el-table-column>
                    <el-table-column align="center" prop="required" label="是否必填">
                      <template slot-scope="scope">
                        <div>{{ scope.row.required ? '是' : '否' }}</div>
                      </template>
                    </el-table-column>
                    <el-table-column align="center" prop="type" label="参数类型"></el-table-column>
                    <el-table-column align="center" prop="describe" label="描述说明"></el-table-column>
                  </el-table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </el-main>
    </el-container>


  </div>
</template>

<script>
import breadcrumb from "@/components/breadcrumb";
import titleBgVue from '@/components/titleBg.vue';

export default {
  data() {
    return {
      menuArr: [{
        menuItemName: '长安民生',
        subItem: [
          { requestName: '添加司机', requestType: 'GET', address: '/account/api/insertDriver' },
          { requestName: '司机认证', requestType: 'POST', address: '/account/api/modifyDriverImgUrl' },
          { requestName: '新增车辆', requestType: 'POST', address: '/account/api/insertVehicle' },
          { requestName: '新增供应商', requestType: 'POST', address: '/account/api/insertSupplier' },
          { requestName: '新增自营订单', requestType: 'POST', address: '/account/api/addOrder' }]
      }],
      dataArr: [
        {
          RequsetName: '添加司机', address: '/account/api/insertDriver', requestType: 'POST', contentType: 'application/json',
          header: [{ parameter: 'Authorization', argument: '{{token}}', type: 'String', describe: 'token授权', required: true }],
          params: [{ parameter: 'age', argument: 25, type: 'Integer', describe: '年龄', required: true },
          { parameter: 'driverName', argument: '张三', type: 'String', describe: '司机姓名', required: true },
          { parameter: 'sex', argument: 0, type: 'String', describe: '性别(0男,1女)', required: true },
          { parameter: 'region', argument: '重庆市渝北区', type: 'String', describe: '所在区域(X省X市X区)', required: true },
          { parameter: 'phoneNumber', argument: '13228694957', type: 'String', describe: '联系电话', required: true },
          { parameter: 'licenseLevel', argument: '张三', type: 'Array', describe: '司机驾照', required: true },
          { parameter: 'licensePhoto', argument: '{{url}}', type: 'String', describe: '驾照照片URL', required: true },
          { parameter: 'idCard', argument: '500222xx..', type: 'String', describe: '司机身份证号', required: true },
          { parameter: 'driverPhoto', argument: '{{url}}', type: 'String', describe: '司机照片url', required: true },
          { parameter: 'idCardFront', argument: '{{url}}', type: 'String', describe: '身份证正面照URL', required: true },
          { parameter: 'idCardBack', argument: '{{url}}', type: 'String', describe: '身份证背面照URL', required: true },
          { parameter: 'registerCode', argument: '123456', type: 'String', describe: '邀请人邀请码', required: false }],
        }, {
          RequsetName: '司机认证', address: '/account/api/modifyDriverImgUrl', requestType: 'POST', contentType: 'application/json',
          header: [{ parameter: 'Authorization', argument: '{{token}}', type: 'String', describe: 'token授权', required: true }],
          params: [{
            parameter: 'driverResult', argument: 'obj', type: 'Object', describe: '司机信息', required: true,
            children: [{ parameter: 'driverId', argument: '12312323', type: 'Long', describe: '司机ID', required: true },
            { parameter: 'userId', argument: '12312323', type: 'Long', describe: '用户ID', required: true },
            { parameter: 'driverName', argument: '李四', type: 'String', describe: '司机名称', required: true },
            { parameter: 'sex', argument: 0, type: 'Integer', describe: '性别(0男,1女)', required: true },
            { parameter: 'age', argument: 25, type: 'Integer', describe: '年龄', required: true },
            { parameter: 'region', argument: 0, type: 'String', describe: '所在区域(X省X市X区)', required: true },
            { parameter: 'phoneNumber', argument: 0, type: 'String', describe: '联系电话', required: true },
            { parameter: 'licenseLevel', argument: 0, type: 'Integer', describe: '司机驾照', required: true },
            { parameter: 'idCard', argument: 0, type: 'String', describe: '司机身份证号', required: true },
            { parameter: 'isCar', argument: 0, type: 'Boolean', describe: '是否带车', required: true },
            { parameter: 'registerCode', argument: '123456', type: 'String', describe: '邀请人邀请码', required: true }]
          },
          {
            parameter: 'carResult', argument: 'obj', type: 'Object', describe: '车辆信息(如选择带车必填)', required: false,
            children: [{ parameter: 'vehicleId', argument: '{{vehicleId}}', type: 'Long', describe: '司机ID', required: true },
            { parameter: 'userId', argument: '{{userId}}', type: 'Long', describe: '用户ID', required: true },
            { parameter: 'numberplate', argument: '李四', type: 'String', describe: '车牌号', required: true },
            { parameter: 'vehicleType', argument: '某车辆类型', type: 'String', describe: '车辆类型', required: true },
            { parameter: 'brandModel', argument: '某品牌型号', type: 'String', describe: '品牌型号', required: true },
            { parameter: 'specification', argument: '某规格', type: 'String', describe: '规格', required: true },
            { parameter: 'carriageLength', argument: '320', type: 'String', describe: '车厢长度单位CM', required: true },
            { parameter: 'loadSide', argument: '1.5', type: 'Double', describe: '载方', required: true },
            { parameter: 'vehicleHeight', argument: '150', type: 'Double', describe: '车高 单位CM', required: true },
            { parameter: 'loadCapacity', argument: '100', type: 'Double', describe: '车辆载重(100)Kg', required: true },
            { parameter: 'highRoof', argument: '123456', type: 'Boolean', describe: '是否为高顶0否1是', required: true },
            { parameter: 'drivingLicence', argument: '123456', type: 'String', describe: '行驶证照片URL', required: true },
            { parameter: 'drivingLicenseCar', argument: '123456', type: 'String', describe: '行驶证车辆页照片', required: true },
            { parameter: 'carFortyFive', argument: '123456', type: 'String', describe: '车辆45度照片', required: true },
            { parameter: 'roadTransport', argument: '123456', type: 'String', describe: '道路运输许可证', required: false }]
          }],
        }, {
          RequsetName: '新增车辆', address: '/account/api/insertVehicle', requestType: 'POST', contentType: 'application/json',
          header: [{ parameter: 'Authorization', argument: '{{token}}', type: 'String', describe: 'token授权', required: true }],
          params: [{ parameter: 'vehicleType', argument: 25, type: 'Integer', describe: '车辆类型(参考vehicle_type)', required: true },
          { parameter: 'containerType', argument: '张三', type: 'Integer', describe: '货箱类型ID', required: true },
          { parameter: 'brandModel', argument: 0, type: 'String', describe: '品牌型号', required: true },
          { parameter: 'loadCapacity', argument: '100', type: 'String', describe: '车辆载重(100)Kg', required: true },
          { parameter: 'lwh', argument: '100,100,100', type: 'String', describe: '车辆长宽高(100,100,100)单位CM', required: true },
          { parameter: 'specification', argument: '规格', type: 'String', describe: '规格', required: true },
          { parameter: 'loadSide', argument: '2.5', type: 'String', describe: '载方', required: true },
          { parameter: 'carriageLength', argument: '180', type: 'String', describe: '车厢长度单位CM', required: true },
          { parameter: 'numberplate', argument: '{{url}}', type: 'String', describe: '车牌号', required: true },
          { parameter: 'beidouId', argument: '{{url}}', type: 'String', describe: '北斗设备ID', required: true },
          { parameter: 'identifer', argument: '{{url}}', type: 'String', describe: '车辆识别号', required: true },
          { parameter: 'drivingLicence', argument: '{{url}}', type: 'String', describe: '行驶证照片URL', required: true },
          { parameter: 'proprietaryRights', argument: '{{url}}', type: 'String', describe: '车辆所有权证URL', required: true },
          { parameter: 'vehiclePhotos', argument: 'URL1,URL2,URL3', type: 'String', describe: '车辆照片集合(URL1,URL2,URL3,URL4)', required: true },
          { parameter: 'portAddress', argument: 'PLATFORM', type: 'String', describe: '查询端口平台:平台端PLATFORM、供应商端SUPPLIER、司机端DRIVER', required: true },],
        }, {
          RequsetName: '新增供应商', address: '/account/api/insertSupplier', requestType: 'POST', contentType: 'application/json', apiPost: 'https://console-docs.apipost.cn/preview/8e473cc6e204a1af/b66024498812b208?target_id=acb7087f-ee1b-45e4-b55f-5cab15fe8017',
          header: [{ parameter: 'Authorization', argument: '{{token}}', type: 'String', describe: 'token授权', required: true }],
          params: [
            { parameter: 'masterUserId', argument: '{{id}}', type: 'Long', describe: '主用户ID', required: true },
            { parameter: 'supplierCoding', argument: '{{供应商代码}}', type: 'Long', describe: '供应商代码', required: true },
            { parameter: 'recommendDepartment', argument: '某部门', type: 'String', describe: '推荐部门', required: true },
            { parameter: 'supplierName', argument: 'String', type: 'String', describe: '供应商企业全称', required: true },
            { parameter: 'supplierAbbreviation', argument: 'String', type: 'Integer', describe: '供应商企业简称', required: true },
            { parameter: 'comCoverPhoto', argument: '{{url}}', type: 'String', describe: '公司封面图片URL', required: true },
            { parameter: 'comCoverPhoto', argument: '13129284848', type: 'String', describe: '统一社会信用代码', required: true },
            { parameter: 'legalPerson', argument: '张三', type: 'Integer', describe: '法人姓名', required: true },
            { parameter: 'comCreateTime', argument: 'yyyy-MM-dd', type: 'String', describe: '公司成立时间', required: true },
            { parameter: 'location', argument: 'String', type: 'String', describe: '所属地区', required: false },
            { parameter: 'officeArea', argument: 'String', type: 'String', describe: '办公地址', required: true },
            { parameter: 'registrationCountry', argument: 'String', type: 'String', describe: '注册国家', required: true },
            { parameter: 'businessScope', argument: 'String', type: 'String', describe: '经营范围', required: true },
            { parameter: 'enterpriseNature', argument: 'String', type: 'String', describe: '企业性质', required: true },
            { parameter: 'registeredCapital', argument: 'String', type: 'String', describe: '注册资金(万元)', required: true },
            { parameter: 'supplierCommitment', argument: 'String', type: 'String', describe: '供应商承诺书', required: true },
            { parameter: 'businessLicense', argument: 'String', type: 'String', describe: '营业执照', required: true },
            { parameter: 'payeeAccountName', argument: 'String', type: 'String', describe: '收款人账户名', required: true },
            { parameter: 'taxpayerIdentificationNumber', argument: 'String', type: 'String', describe: '纳税人识别号', required: true },
            { parameter: 'openingBank', argument: 'String', type: 'String', describe: '开户行', required: true },
            { parameter: 'bankAccountNumber', argument: 'String', type: 'String', describe: '开户行账号', required: true },
            { parameter: 'bankName', argument: 'String', type: 'String', describe: '银行名称', required: true },
            , { parameter: 'locationId', argument: '{{locationId}}', type: 'String', describe: '所属地区id', required: true },
            { parameter: 'branchName', argument: 'String', type: 'String', describe: '分行名称', required: true },
            { parameter: 'subbranchName', argument: 'String', type: 'String', describe: '支行名称', required: true },
            { parameter: 'branchCities', argument: 'String', type: 'String', describe: '分行省市', required: true },
            { parameter: 'branchCode', argument: 'String', type: 'String', describe: '分行编码', required: true },
            { parameter: 'companyTel', argument: 'String', type: 'String', describe: '公司电话', required: true },
            { parameter: 'headName', argument: 'String', type: 'String', describe: '负责人姓名', required: true },
            { parameter: 'headTel', argument: 'String', type: 'String', describe: '负责人电话', required: true },
            { parameter: 'headMail', argument: 'String', type: 'String', describe: '负责人邮箱', required: true },
            { parameter: 'username', argument: 'String', type: 'String', describe: '用户名', required: true },
            { parameter: 'confirmPassword', argument: 'String', type: 'String', describe: '密码(新增)', required: true },
            { parameter: 'confirmPassword', argument: 'String', type: 'String', describe: '确认密码(新增)', required: true },
            { parameter: 'newPassword', argument: 'String', type: 'String', describe: '新密码(编辑)', required: true },


            {
              parameter: 'lineIds', argument: '[[线路1],[线路2]]', type: 'Array', describe: '线路列表', required: true,
              children: [
                { parameter: 'lineName', argument: 'String', type: 'String', describe: '', required: true },
                {
                  parameter: 'lineAddressDtos', argument: '[{},{}]', type: 'Array', describe: '线路信息', required: true,
                  children: [
                    { parameter: 'addressType', argument: 'String', type: 'String', describe: '地址类型(0起点, 1终点, 2途经点)', required: true },
                    { parameter: 'address', argument: 'String', type: 'String', describe: '地址(重庆市,渝中区,昆仑大道)', required: true },
                    { parameter: 'detail', argument: 'String', type: 'String', describe: '详细地址(门牌号)', required: true },
                    { parameter: 'contact', argument: 'String', type: 'String', describe: '联系人', required: true },
                    { parameter: 'phone', argument: 'String', type: 'String', describe: '手机号', required: true },
                    { parameter: 'lng', argument: 'String', type: 'String', describe: '经度', required: true },
                    { parameter: 'lat', argument: 'String', type: 'String', describe: '纬度', required: true }]
                }]
            },
            {
              parameter: 'contractIds', argument: '[{},{}]', type: 'Array', describe: '合同列表', required: false,
              children: [
                { parameter: 'contractingPartyId', argument: 'String', type: 'String', describe: '合同方id', required: true },
                { parameter: 'supplierCargoContractId', argument: 'String', type: 'String', describe: '供应商对应的货主合同Id', required: true },
                { parameter: 'cargoContractName', argument: 'String', type: 'String', describe: '供应商对应的货主合同名称', required: true },
                { parameter: 'contractingPartyType', argument: 'String', type: 'String', describe: '合同来源方：SUPPLIER、CARGO_OWNER', required: true },
                { parameter: 'contractNumber', argument: 'String', type: 'String', describe: '合同编号', required: true },
                { parameter: 'projectName', argument: 'String', type: 'String', describe: '项目名称', required: true },
                { parameter: 'contractName', argument: 'String', type: 'String', describe: '计费标准', required: true },
                { parameter: 'charging', argument: 'String', type: 'String', describe: '计费标准', required: true },
                { parameter: 'chargingUnit', argument: 'String', type: 'String', describe: '计费单位', required: true },
                { parameter: 'settlementPeriod', argument: 'String', type: 'String', describe: '结算周期', required: true },
                { parameter: 'settlementPeriodUnit', argument: 'String', type: 'String', describe: '结算账期单位', required: true },
                { parameter: 'invoiceType', argument: 'String', type: 'String', describe: '发票类型', required: true },
                { parameter: 'taxRate', argument: 'String', type: 'String', describe: '发票税率', required: true },
                { parameter: 'contractPeriod', argument: 'String', type: 'String', describe: '合同期限', required: true },
                { parameter: 'contractPeriodUnit', argument: 'String', type: 'String', describe: '合同期限单位', required: true },
                { parameter: 'earnestMoney', argument: 'String', type: 'String', describe: '保证金', required: true },
                { parameter: 'contractStartTime', argument: 'String', type: 'String', describe: '合同开始时间', required: true },
                { parameter: 'contractEndTime', argument: 'String', type: 'String', describe: '合同结束时间', required: true },
                { parameter: 'contractRemarks', argument: 'String', type: 'String', describe: '合同备注', required: true },
                { parameter: 'signImage', argument: 'String', type: 'String', describe: '合同附件', required: true },
              ]
            }],
        }, {
          RequsetName: '新增自营订单', address: '/account/api/addOrder', requestType: 'POST', contentType: 'application/json',
          header: [{ parameter: 'Authorization', argument: '{{token}}', type: 'String', describe: 'token授权', required: true }],
          params: [
            { parameter: 'ownerId', argument: 'String', type: 'String', describe: '货主ID', required: true },
            { parameter: 'orderId', argument: 'String', type: 'String', describe: '订单ID', required: true },
            { parameter: 'projectId', argument: 'String', type: 'String', describe: '项目ID', required: true },
            { parameter: 'projectName', argument: 'String', type: 'String', describe: '项目名称', required: true },
            { parameter: 'ownerProject', argument: 'String', type: 'String', describe: '计划名称', required: true },
            { parameter: 'pricingMethod', argument: 'String', type: 'String', describe: '计价方式(参考pricing_method_type)', required: true },
            { parameter: 'measureUnit', argument: 'String', type: 'String', describe: '计量单位`(参考measure_unit_type)', required: true },
            { parameter: 'cargoQuantity', argument: 'String', type: 'String', describe: '数量', required: true },
            { parameter: 'cargoWeight', argument: 'String', type: 'String', describe: '运量', required: true },
            { parameter: 'ownerUnitPrice', argument: 'String', type: 'String', describe: '货主单价(¥10.00)', required: true },
            { parameter: 'totalAmount', argument: 'String', type: 'String', describe: '货主金额(¥100.00)', required: true },
            { parameter: 'unitPrice', argument: 'String', type: 'String', describe: '司机单价(¥10.00)', required: true },
            { parameter: 'freight', argument: 'String', type: 'String', describe: '司机运费(¥100.00)', required: true },
            { parameter: 'endTime', argument: 'String', type: 'String', describe: '截止时间(超过将不可用)', required: true },
            { parameter: 'carTypeNeeds', argument: 'String', type: 'String', describe: '车型需要', required: true },
            { parameter: 'description', argument: 'String', type: 'String', describe: '订单备注描述', required: true },
            { parameter: 'shippedTime', argument: 'String', type: 'String', describe: '发货时间', required: true },
            { parameter: 'finishTime', argument: 'String', type: 'String', describe: '收货时间', required: true },
            { parameter: 'appointSupplierId', argument: 'String', type: 'String', describe: '指定车队ID', required: true },
            { parameter: 'driverId', argument: 'String', type: 'String', describe: '司机id', required: true },
            { parameter: 'lineId', argument: 'String', type: 'String', describe: '线路id', required: true },
            { parameter: 'startAddress', argument: 'String', type: 'String', describe: '发货地集合', required: true },
            { parameter: 'endAddress', argument: 'String', type: 'String', describe: '收货地集合', required: true },
            { parameter: 'fleetId', argument: 'String', type: 'String', describe: '1内部车队2外部车队', required: true },
            { parameter: 'fleetId', argument: 'String', type: 'String', describe: '供应商订单调度状态（0=未调度司机；1=已调度司机)', required: true },
            { parameter: 'fleetId', argument: 'String', type: 'String', describe: '车队ID', required: true },
            { parameter: 'orderDispatches', argument: 'String', type: 'String', describe: '调度司机集合', required: true },
            { parameter: 'supplierMoney', argument: 'String', type: 'String', describe: '承运商运费', required: true },
            { parameter: 'startAddress', argument: '[{},{}...]', type: 'Array', describe: '发货地址', required: true,
            children:[
            { parameter: 'orderAddressId', argument: 'String', type: 'String', describe: '地址ID', required: true },
            { parameter: 'name', argument: 'String', type: 'String', describe: '地址别名', required: true },
            { parameter: 'address', argument: 'String', type: 'String', describe: '地址(重庆市,渝中区,昆仑大道)', required: true },
            { parameter: 'detail', argument: 'String', type: 'String', describe: '详细地址(门牌号)', required: true },
            { parameter: 'contact', argument: 'String', type: 'String', describe: '联系人', required: true },
            { parameter: 'phone', argument: 'String', type: 'String', describe: '手机号', required: true },
            { parameter: 'lat', argument: 'String', type: 'String', describe: '经度', required: true },
            { parameter: '', argument: 'String', type: 'String', describe: '纬度', required: true },
            ] },
            { parameter: 'endAddress', argument: '[{},{}...]', type: 'Array', describe: '收货地址', required: true,
            children:[
            { parameter: 'orderAddressId', argument: 'String', type: 'String', describe: '地址ID', required: true },
            { parameter: 'name', argument: 'String', type: 'String', describe: '地址别名', required: true },
            { parameter: 'address', argument: 'String', type: 'String', describe: '地址(重庆市,渝中区,昆仑大道)', required: true },
            { parameter: 'detail', argument: 'String', type: 'String', describe: '详细地址(门牌号)', required: true },
            { parameter: 'contact', argument: 'String', type: 'String', describe: '联系人', required: true },
            { parameter: 'phone', argument: 'String', type: 'String', describe: '手机号', required: true },
            { parameter: 'lat', argument: 'String', type: 'String', describe: '经度', required: true },
            { parameter: '', argument: 'String', type: 'String', describe: '纬度', required: true },
            ] },
            { parameter: 'orderDispatches', argument: '[{},{}...]', type: 'Array', describe: '调度司机', required: true,
            children:[
            { parameter: 'dispatchId', argument: 'String', type: 'String', describe: '调度id', required: true },
            { parameter: 'isDelete', argument: 'String', type: 'String', describe: '删除', required: true },
            { parameter: 'orderId', argument: 'String', type: 'String', describe: '订单id', required: true },
            { parameter: 'waybillId', argument: 'String', type: 'String', describe: '运单id', required: true },
            { parameter: 'driverId', argument: 'String', type: 'String', describe: '司机id', required: true },
            { parameter: 'cargoWeight', argument: 'String', type: 'String', describe: '运量', required: true },
            { parameter: 'unitPrice', argument: 'String', type: 'String', describe: '司机单价', required: true },
            { parameter: 'freight', argument: 'String', type: 'String', describe: '司机运费', required: true },
            { parameter: 'lineId', argument: 'String', type: 'String', describe: '线路id', required: true },
            ] },
            { parameter: 'orderCargoDetails', argument: '[{},{}...]', type: 'Array', describe: '货物信息集合对象', required: true,
            children:[
            { parameter: 'cargoDetailId', argument: 'String', type: 'String', describe: '明细ID', required: true },
            { parameter: 'orderId', argument: 'String', type: 'String', describe: '订单ID', required: true },
            { parameter: 'orderAddressId', argument: 'String', type: 'String', describe: '地址ID', required: true },
            { parameter: 'measureUnit', argument: 'String', type: 'String', describe: '计量单位', required: true },
            { parameter: 'cargoName', argument: 'String', type: 'String', describe: '货物名称', required: true },
            { parameter: 'cargoType', argument: 'String', type: 'String', describe: '货物类型', required: true },
            { parameter: 'cargoQuantity', argument: 'String', type: 'String', describe: '货物数量(件/个/包/箱/袋)', required: true },
            { parameter: 'brand', argument: 'String', type: 'String', describe: '品牌', required: true },
            { parameter: 'cargoVolume', argument: 'String', type: 'String', describe: '货物体积(200cm*200cm*200cm)', required: true },
            { parameter: 'cargoWeight', argument: 'String', type: 'String', describe: '货物重量(千克/Kg)', required: true },
            { parameter: 'cargoPics', argument: 'String', type: 'String', describe: '货物图片地址集合(url1,url2,..)', required: true },
            { parameter: 'description', argument: 'String', type: 'String', describe: '备注', required: true },
            { parameter: 'isDelete', argument: 'String', type: 'String', describe: '逻辑删除0否1是', required: true },
         
            ] }
            
 

          ],
        }],

      show1: true,
      show2: true,
      show3: true,
      selectedItem: '/account/api/insertDriver'

    };
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log("open", key, keyPath);
    },
    handleClose() {

    },
    selectMenu(e) {
      this.selectedItem = e
      console.log(e)
    },
    showMainItem(type) {
      switch (type) {
        case 1:
          this.show1 = !this.show1
          break;
        case 2:
          this.show2 = !this.show2
          break;
        case 3:
          this.show3 = !this.show3
          break;
      }
    }

  },
  mounted() {

  },
  components: {
    breadcrumb,
    titleBgVue
  },

};
</script>

<style lang="scss" scoped>
.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  height: calc(100vh - 127px)
}


.list {
  ::v-deep .el-table__header th {
    background-color: #f0f6fd;
    color: #262626;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    height: 48px;
    padding: 0;

    // 表 body的td
    ::v-deep .el-table__body td {
      color: #595959;
      font-size: 12px;
    }
  }
}

.mainTitle {
  background-color: #f8f8f8;
  height: 40px;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  margin-top: 28px;
  padding-left: 8px;
  cursor: pointer;

  .icon-xiajiantou {
    font-size: 15px;
    margin-right: 6px;

  }

  .active {
    transform: rotate(-90deg);
    transition: 0.2s;
  }

  .TitleText {
    color: #262626;
    font-size: 13px;
    font-weight: bold;
  }
}

.menuVertical {
  height: calc(100vh - 127px);

  .NavItem {
    display: flex;
    align-items: center;

    .iconNav {
      width: 18px;
      height: 18px;
      margin-right: 5px;
    }

    .titleNav {
      font-size: 16px;
    }
  }

  .titleItem {
    display: flex;
    align-items: center;

    .requesType {
      font-size: 14px;
      font-weight: bold;
      margin-right: 5px;

      &.GET {
        color: greenyellow
      }

      &.POST {
        color: orange;
      }

      &.DEL {
        color: red;
      }

      &.PUT {
        color: skyblue;
      }
    }

    .requestName {
      color: #333;
      font-size: 14px;
    }
  }
}

.el-main {
  padding-top: 0;
  padding-bottom: 0;
  color: #333;
  text-align: center;
  height: calc(100vh - 127px);


  .mainBox {
    width: 100%;
    background-color: #fff;
    height: 100%;
    overflow: scroll;
    padding: 20px;
  }
}
</style>